package com.ruoyi.business.controller;

import com.ruoyi.business.service.IBusCustomerService;
import com.ruoyi.business.vo.CustomerAddressVo;
import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 内容:
 * 作者: cy
 */

@RestController
@RequestMapping("business/statistics")
@Api(tags = "统计分析")
public class StatisticsController {
   @Autowired
   private IBusCustomerService busCustomerService;

   @GetMapping("getCustomerAddressData")
   @ApiOperation("查询客户地址数据")
   private AjaxResult getCustomerAddressData(){
      List<CustomerAddressVo> customerAddressVoList = busCustomerService.getCustomerAddressData();
      return AjaxResult.success(customerAddressVoList);
   }
}

